<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="node_modules/jquery/dist/jquery.min.js"></script>
</head>

<body>
    <!--  <form method="post" id="addPicForm" enctype="multipart/form-data">
            <div id="imgUpload">    
                        <input type="file" name="file" id="file" multiple="multiple" style="display:none;">    
                    </div> 
                <div style="text-align:center;padding:50px;"> 
            <input type="button" id="btn_add2" value="选择图片" style="font-size:25px;" height:35px;width:45px;><br />   
            <p style="color:red;font-size:20px;">按住Ctrl可多选图片</p>
        </div>  
    </form>
    <script src="node_modules/jquery/dist/jquery.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#btn_add2").click(function () {
                $("#file").trigger("click");
            });
        });
    </script> -->

    <textarea name="" id="textarea" cols="30" rows="10"></textarea>
    <button>取值</button>
    <script>

        $('textarea').blur(function () {
            console.log(this.value);
        })
        $('button').click(() => {
            let text = $('textarea').text()
            console.log($('textarea'));
            alert(text)
        })
        function onsubmit1() {
            var textarea = document.getElementById("textarea").value;
            alert(textarea);
            if (textarea == "") {
                return false;
            }
        }
     
        $('textarea').blur(function () {
            // onsubmit1()
        })
    </script>

</body>

</html>